{template "content","header"}
<div class="content min_height425">
   <div class="set_mav">
     <ul>
        <li><a href="{APP_PATH}index.php?m=member&c=space&a=guanzu&username={$username}" {if $_GET['a']=='guanzu'}class="select"{/if}>我的关注</a></li>
        <li><a href="{APP_PATH}index.php?m=member&c=space&a=fensi&username={$username}" {if $_GET['a']=='fensi'}class="select"{/if}>我的粉丝</a></li>
        <li><a href="{APP_PATH}index.php?m=member&c=space&a=yaoqing&username={$username}" {if $_GET['a']=='yaoqing'}class="select"{/if}>邀请好友</a></li>
     </ul>
     </div>

      <div class="my_fans">
		<ul>
			 {pc:get sql="SELECT * FROM  `v9_member_friend` WHERE username='$username' ORDER BY inputtime DESC" num="18" return="data" page="$page"}
		    {if $data}
			{loop $data $v $r}
			<?php
				$fensiarr = get_memberinfo($r['fuserid'],'fensi,guanzu');
			?>
			<li>
			   <div class="fans_li">
				   <div class="pic"><img src="{get_memberavatar($r['fuserid'])}" onerror="this.src='{CSS_PATH}zouzou/images/head.png'" alt="{$r['fname']}" /></div>
				   <div class="text">
					   <p><a href="{member_url($r['fname'])}" target="_blank" class="who">{$r['fname']}</a></p>
					   <p>粉丝:<label class="fr">{$fensiarr['fensi']}</label></p>
					   <p>关注:<label class="fr">{$fensiarr['guanzu']}</label></p>
				   </div>
			   </div>
      		</li>
			{/loop}
		   {else}您还没有关注!
		   {/if}  
		   {/pc}
		</ul>
      </div>
      <div id="pages">{$pages}</div>
</div>
{template "content","footer"}